import req from '@/http/http'
import {getServer} from '@/http/AppApi'

let ZHPQ_SERVER = getServer()

// 非公有制经济组织
// 修改
export const updateNonPublicOrg = data => {
  let path = ZHPQ_SERVER + '/nonPublicOrg/' + data.id
  return req.put(path, data)
}
// 删除
export const delNonPublicOrg = data => {
  let path = ZHPQ_SERVER + '/nonPublicOrg/' + data.id
  return req.delete(path)
}
// 获取 查询 分页
export const getNonPublicOrg = param => {
  let path = ZHPQ_SERVER + '/nonPublicOrg'
  return req.get(path, param)
}
// 新增
export const createNonPublicOrg = data => {
  let path = ZHPQ_SERVER + '/nonPublicOrg/'
  return req.post(path, data)
}

// 社会组织
// 修改
export const updateSocialOrg = data => {
  let path = ZHPQ_SERVER + '/socialOrg/' + data.id
  return req.put(path, data)
}
// 删除
export const delSocialOrg = data => {
  let path = ZHPQ_SERVER + '/socialOrg/' + data.id
  return req.delete(path)
}
// 获取 查询 分页
export const getSocialOrg = param => {
  let path = ZHPQ_SERVER + '/socialOrg'
  return req.get(path, param)
}
// 新增
export const createSocialOrg = data => {
  let path = ZHPQ_SERVER + '/socialOrg/'
  return req.post(path, data)
}
